<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="org.springside.core.Constants"%>
<%@ include file="/common/taglibs.jsp"%>
<fmt:message key="docex_portal_label1" var="docex_portal_label1" />
<fmt:message key="docex_portal_label2" var="docex_portal_label2" />
<fmt:message key="docex_portal_label3" var="docex_portal_label3" />
<fmt:message key="docex_portal_label4" var="docex_portal_label4" />
<fmt:message key="docex_portal_label5" var="docex_portal_label5" />


<ff:boxportlet header="${docex_portal_label1}">

    
    	<table width="100%" border="0" cellpadding="0" cellspacing="0" style="padding-left:5px">
			<tr>
				<td valign="top">
					<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="tbl_left_ico">
					<!--  如果不设置count参数或者设置小于等于0，则默认值为5.
					 dmp: PT046412 (R110216-272) 待办事项，默认显示8条记录，超过6条记录时，首页默认显示占位减1，且首页只显示5条记录
					 modify by yiping_sun 2011-02-24 
					-->
					<c:set var="count" value="${param.count == null || param.count <= 0 ? 5 : param.count }" />	
				          <c:forEach items="${docexFiledetails}" var="docexFiledetail" begin="0" end="${count - 1 }"> 
				          <tr>
								<td>
									<A href="<c:url value="/modules/docex/docexFile.do?method=inshow&id=${docexFiledetail.id}"/>" title="<c:out value="${docexFiledetail.docexFile.title}"/>"> ${docexFiledetail.isread=='0'?'<B>':''} 
									<c:if test="${fn:length(docexFiledetail.docexFile.title)> param.y}">
					                	${fn:substring(docexFiledetail.docexFile.title,0, param.y)}...
					                </c:if>
			                <c:if test="${fn:length(docexFiledetail.docexFile.title)<= param.y}">
			                	${docexFiledetail.docexFile.title}
			                </c:if> ${docexFiledetail.isread=='0'?'</B>':''} </a>
							<c:if test="${docexFiledetail.isread == 0}">
								<img src="<c:url value="../../themes/${sessionScope.loginUser.theme}/home/images/new.gif"/>">
							</c:if>
							<c:if test="${docexFiledetail.createdate!=null}">
								<font color="#999999">(<fmt:formatDate value="${docexFiledetail.createdate }" pattern="MM-dd HH:mm"/>)</font>
							</c:if>
								</td>
							</tr>
						</c:forEach>
						
						<c:if test="${fn:length(docexFiledetails) < count }">
					        <c:forEach begin="${fn:length(docexFiledetails)}" end="${ count - 1 }">
					        	<tr><td>&nbsp;</td></tr>
					        </c:forEach>
			      		</c:if>
	
					</table>
					<table width="100%" height="17">
				        <tr>
				          <td>&nbsp;</td>
				          <td width="30" class="tbl_more_ico_td"><a href="#" class="link_portlet" onClick='mainJump("/modules/docex/docexFile.do?method=inbox&ec_s_createdate=desc","<%=Constants.USER_THEME_FRAME %>")'
			          	title="<fmt:message key="common_more" />"><fmt:message key="common_more" /></a></td>
				        </tr>
			      </table>
				</td>
			</tr>
		</table>
</ff:boxportlet>    
	

	